import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-10-14
 * Time: 19:36
 */
public class test_1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int b = in.nextInt();
            int n = cda(a, b);
            System.out.println(a * b / n);
        }
    }

    private static int cda(int a, int b) {
        if (b == 0) {
            return a;
        }
        return cda(b, a % b);
    }
}
